class SimCodeEntity {
  int code;
  SimCodeData data;
  String message;

  SimCodeEntity({this.code, this.data, this.message});

  SimCodeEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? new SimCodeData.fromJson(json['data']) : null;
    message = json['message']== null ? "" : json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['message'] = this.message ;
    return data;
  }
}

class SimCodeData {
  String time;

  SimCodeData({this.time});

  SimCodeData.fromJson(Map<String, dynamic> json) {
    time = json['time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['time'] = this.time;
    return data;
  }
}
